package com.mls.fivedistrict.pojo;

import java.util.Date;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableLogic;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotations.Version;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;

/**
 * <p>
 * 用户点赞评论
 * </p>
 *
 * @author Five Team
 * @since 2018-06-29
 */
@Data
@Accessors(chain = true)
@TableName("t_user_like_comment")
public class UserLikeComment extends Model<UserLikeComment> {

    private static final long serialVersionUID = 1L;

    private Long id;
    /**
     * 用户ID
     */
    private Long userId;
    /**
     * 评论ID
     */
    @NotNull(message = "评论id不能为空")
    private Long commentId;
    private Date createDate;
    private Date updateDate;

    private Boolean isDelete;
    private Boolean isEnable;

    public Boolean getDelete() {
        return isDelete;
    }

    public void setDelete(Boolean delete) {
        isDelete = delete;
    }

    public Boolean getEnable() {
        return isEnable;
    }

    public void setEnable(Boolean enable) {
        isEnable = enable;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
